#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

#include<stdlib.h>

void fun(int n, int q[]) {
    int a, b;
    while (scanf("%d %d", &a, &b) != EOF) {
        for (int i = a - 1; i <= b - 1; i++) {
            q[i]++;
        }
    }
    for (int i = 0; i < n; i++) {
        printf("%d ", q[i]);
    }
}

int main() {
    int n;
    scanf("%d", &n);
    int* q = (int*)malloc(1000000 * sizeof(int));
    for (int i = 0; i < n; i++) {
        q[i] = 0;
    }
    fun(n, q);
    return 0;
}